/**
 * FacebookClient.java
 * 
 * Created on Nov 9, 2007 at 2:18:43 AM
 */
package mobiled.bascule.facebook.client.impl;

import mobiled.bascule.facebook.client.IFacebookFacade;

import com.facebook.api.FacebookRestClient;
import com.facebook.api.IFacebookRestClient;

/**
 * Implementation that delegates to the Facebook Java API Library.
 * 
 * REMEMBER deal with expired Facebook sessions. 
 *  
 * @author <a href="alexei.guevara@gmail.com">Alexei Guevara</>
 * @version $Revision:$ updated on $Date:$ by $Author:$
 */
public class FacebookFacadeRestClient extends FacebookLibrarySupport implements IFacebookFacade {

    public FacebookFacadeRestClient( FacebookRestClient theFacebookRestClient ) {
	super( theFacebookRestClient );
    }

    public long getLoggedInUser() {
	try {
	    return myFbRestClient.users_getLoggedInUser();
	} 
	catch (Exception e) {
	    throw new RuntimeException( e );
	}
    }

}
